<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/styles.css"/>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/professior.js"></script>
  </head>
  
  <body>
   <hr>
   <form action="">
   		<fieldset>
   			<legend>请选择专家</legend>
   			<table style="width:400px">
   					<tr>
   						<th>专家名称</th>
   						<th>专家领域</th>
   						<th>选择</th>
   					</tr>
   					<c:choose>
   						<c:when test="${empty professorList}">
   							<tr>
   								<td colspan="3">没有该领域的专家</td>
   							</tr>
   						</c:when>
   						<c:otherwise>
   							<c:forEach items="${professorList}" var="professor">
   							<tr>
   								<td>${professor.userName}</td>
   								<td>${professor.area}</td>
   								<td><input type="checkbox" name="professon" value="${professor.id}"></td>
   							</tr>
   							</c:forEach>
   						</c:otherwise>
   					</c:choose>
   			</table>
   			<input type="button" value="提交" style="height:20px;margin-left:50px;margin-top:10px" onclick="getProfessor()">
   			<input type="reset" value="重置" style="height:20px;margin-left:25px">
   		</fieldset>
   		</form>
  </body>
</html>
